<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CUDNN Frontend API: nlohmann::adl_serializer&lt; ValueType, typename &gt; Struct Template Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUDNN Frontend API
   &#160;<span id="projectnumber">8.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('dc/dc7/structnlohmann_1_1adl__serializer.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="../../d0/dcd/structnlohmann_1_1adl__serializer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nlohmann::adl_serializer&lt; ValueType, typename &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>default JSONSerializer template argument  
 <a href="../../dc/dc7/structnlohmann_1_1adl__serializer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for nlohmann::adl_serializer&lt; ValueType, typename &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/da3/structnlohmann_1_1adl__serializer__coll__graph.png" border="0" usemap="#nlohmann_1_1adl__serializer_3_01ValueType_00_01typename_01_4_coll__map" alt="Collaboration graph"/></div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a8180f52bf21fc610705bc521f22116ae"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </td></tr>
<tr class="memitem:a8180f52bf21fc610705bc521f22116ae"><td class="memTemplItemLeft" align="right" valign="top">static auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html#a8180f52bf21fc610705bc521f22116ae">from_json</a> (BasicJsonType &amp;&amp;j, TargetType &amp;val) noexcept(noexcept(::nlohmann::from_json(std::forward&lt; BasicJsonType &gt;(j), val))) -&gt; decltype(::nlohmann::from_json(std::forward&lt; BasicJsonType &gt;(j), val), void())</td></tr>
<tr class="memdesc:a8180f52bf21fc610705bc521f22116ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert a JSON value to any value type  <a href="#a8180f52bf21fc610705bc521f22116ae">More...</a><br /></td></tr>
<tr class="separator:a8180f52bf21fc610705bc521f22116ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95eddeff6ff0dd0b6b11c4c7a526716d"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </td></tr>
<tr class="memitem:a95eddeff6ff0dd0b6b11c4c7a526716d"><td class="memTemplItemLeft" align="right" valign="top">static auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html#a95eddeff6ff0dd0b6b11c4c7a526716d">from_json</a> (BasicJsonType &amp;&amp;j) noexcept(noexcept(::nlohmann::from_json(std::forward&lt; BasicJsonType &gt;(j), <a class="el" href="../../d0/db1/structnlohmann_1_1detail_1_1identity__tag.html">detail::identity_tag</a>&lt; TargetType &gt; {}))) -&gt; decltype(::nlohmann::from_json(std::forward&lt; BasicJsonType &gt;(j), <a class="el" href="../../d0/db1/structnlohmann_1_1detail_1_1identity__tag.html">detail::identity_tag</a>&lt; TargetType &gt;</td></tr>
<tr class="memdesc:a95eddeff6ff0dd0b6b11c4c7a526716d"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert a JSON value to any value type  <a href="#a95eddeff6ff0dd0b6b11c4c7a526716d">More...</a><br /></td></tr>
<tr class="separator:a95eddeff6ff0dd0b6b11c4c7a526716d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdcc8f0204ce8ac7d28a5403f6e1f0e7"><td class="memTemplParams" colspan="2">template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </td></tr>
<tr class="memitem:afdcc8f0204ce8ac7d28a5403f6e1f0e7"><td class="memTemplItemLeft" align="right" valign="top">static auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html#afdcc8f0204ce8ac7d28a5403f6e1f0e7">to_json</a> (BasicJsonType &amp;j, TargetType &amp;&amp;val) noexcept(noexcept(::nlohmann::to_json(j, std::forward&lt; TargetType &gt;(val)))) -&gt; decltype(::nlohmann::to_json(j, std::forward&lt; TargetType &gt;(val)), void())</td></tr>
<tr class="memdesc:afdcc8f0204ce8ac7d28a5403f6e1f0e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">convert any value type to a JSON value  <a href="#afdcc8f0204ce8ac7d28a5403f6e1f0e7">More...</a><br /></td></tr>
<tr class="separator:afdcc8f0204ce8ac7d28a5403f6e1f0e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename ValueType, typename&gt;<br />
struct nlohmann::adl_serializer&lt; ValueType, typename &gt;</h3>

<p>default JSONSerializer template argument </p>
<p>This serializer ignores the template arguments and uses ADL (<a href="https://en.cppreference.com/w/cpp/language/adl">argument-dependent lookup</a>) for serialization. </p>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l03353">3353</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a8180f52bf21fc610705bc521f22116ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8180f52bf21fc610705bc521f22116ae">&#9670;&nbsp;</a></span>from_json() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ValueType , typename &gt; </div>
<div class="memtemplate">
template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static auto <a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html">nlohmann::adl_serializer</a>&lt; ValueType, typename &gt;::from_json </td>
          <td>(</td>
          <td class="paramtype">BasicJsonType &amp;&amp;&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TargetType &amp;&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(::nlohmann::from_json(std::forward&lt;BasicJsonType&gt;(j), val), void())
    </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>convert a JSON value to any value type </p>
<p>This function is usually called by the <code><a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#acc422c11342b31368f610b6f96fcedc6">get()</a></code> function of the <a class="el" href="../../d9/dcc/classnlohmann_1_1basic__json.html">basic_json</a> class (either explicit or via conversion operators).</p>
<dl class="section note"><dt>Note</dt><dd>This function is chosen for default-constructible value types.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">j</td><td>JSON value to read from </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">val</td><td>value to write to </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l04863">4863</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l04231">nlohmann::detail::from_json()</a>.</p>

</div>
</div>
<a id="a95eddeff6ff0dd0b6b11c4c7a526716d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95eddeff6ff0dd0b6b11c4c7a526716d">&#9670;&nbsp;</a></span>from_json() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ValueType , typename &gt; </div>
<div class="memtemplate">
template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static auto <a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html">nlohmann::adl_serializer</a>&lt; ValueType, typename &gt;::from_json </td>
          <td>(</td>
          <td class="paramtype">BasicJsonType &amp;&amp;&#160;</td>
          <td class="paramname"><em>j</em></td><td>)</td>
          <td> -&gt; decltype(::nlohmann::from_json(std::forward&lt;BasicJsonType&gt;(j), <a class="el" href="../../d0/db1/structnlohmann_1_1detail_1_1identity__tag.html">detail::identity_tag</a>&lt;TargetType&gt; </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>convert a JSON value to any value type </p>
<p>This function is usually called by the <code><a class="el" href="../../dc/df0/namespacenlohmann_1_1detail.html#acc422c11342b31368f610b6f96fcedc6">get()</a></code> function of the <a class="el" href="../../d9/dcc/classnlohmann_1_1basic__json.html">basic_json</a> class (either explicit or via conversion operators).</p>
<dl class="section note"><dt>Note</dt><dd>This function is chosen for value types which are not default-constructible.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">j</td><td>JSON value to read from</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>copy of the JSON value, converted to <em>ValueType</em> </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l04883">4883</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l04231">nlohmann::detail::from_json()</a>.</p>

</div>
</div>
<a id="afdcc8f0204ce8ac7d28a5403f6e1f0e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdcc8f0204ce8ac7d28a5403f6e1f0e7">&#9670;&nbsp;</a></span>to_json()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ValueType , typename &gt; </div>
<div class="memtemplate">
template&lt;typename BasicJsonType , typename TargetType  = ValueType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static auto <a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html">nlohmann::adl_serializer</a>&lt; ValueType, typename &gt;::to_json </td>
          <td>(</td>
          <td class="paramtype">BasicJsonType &amp;&#160;</td>
          <td class="paramname"><em>j</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TargetType &amp;&amp;&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(::nlohmann::to_json(j, std::forward&lt;TargetType&gt;(val)), void())
    </td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>convert any value type to a JSON value </p>
<p>This function is usually called by the constructors of the <a class="el" href="../../d9/dcc/classnlohmann_1_1basic__json.html">basic_json</a> class.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">j</td><td>JSON value to write to </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>value to read from </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d5/db8/json_8hpp_source.html#l04900">4900</a> of file <a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a>.</p>

<p class="reference">References <a class="el" href="../../d5/db8/json_8hpp_source.html#l04803">nlohmann::detail::to_json()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="../../d5/db8/json_8hpp_source.html">json.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d3/d9b/namespacenlohmann.html">nlohmann</a></li><li class="navelem"><a class="el" href="../../dc/dc7/structnlohmann_1_1adl__serializer.html">adl_serializer</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
